<template>
  <page-header-wrapper :title="false">
    <a-card title="其他客户已加V管理">
      <a-tabs v-model="tab" type="card">
        <a-tab-pane key="1" tab="数据统计">
          <s-table
            bordered
            ref="table1"
            :columns="stateColumns"
            :data="stateData"
          >
          </s-table>
        </a-tab-pane>
        <a-tab-pane key="2" tab="查看所有">
          <s-table
            bordered
            ref="table2"
            :columns="wechatColumns"
            :data="wechatData"
          >
          </s-table>
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </page-header-wrapper>
</template>

<script>
import { STable } from '@/components'
import customerColumns from '@/columns/customer'

export default {
  components: {
    STable
  },
  name: 'OtherPreWechat',
  data () {
    return {
      tab: '1',
      wechatColumns: customerColumns.add_wechat,
      wechatData: () => {
        return new Promise(resolve => {
          resolve({
            page: 1,
            page_size: 10,
            total_count: 0,
            data: []
          })
        })
      },
      stateColumns: customerColumns.wechat_state,
      stateData: () => {
        return new Promise(resolve => {
          resolve({
            page: 1,
            page_size: 10,
            total_count: 0,
            data: []
          })
        })
      }
    }
  },
  created () {
    console.log('老板要求加的，看到后别急着说前端是傻逼')
    console.log('你是不是觉得多此一举，没错，我也这样觉得')
    console.log('工作久了你会明白的，加油兄弟')
  }
}
</script>

<style scoped>

</style>
